import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Time from './views/home/Time.vue'
import Switch from './views/home/Switch.vue'
import State from './views/home/State.vue'
import Clock from './views/home/Clock.vue'
import Monitor from './views/home/Monitor.vue'
import Remote from './views/home/Remote.vue'
import Device from './views/home/Devices.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '系统状态',
        iconCls: 'fa el-icon-tickets',
        leaf: true,//只有一个节点
        children: [
            { path: '/State', component: State, name: '系统状态' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '设备控制',
        iconCls: 'fa el-icon-menu',
        leaf: true,//只有一个节点
        children: [
            { path: '/Device', component: Device, name: '设备控制' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '实时控制',
        iconCls: 'fa el-icon-view',
        leaf: true,//只有一个节点
        children: [
            { path: '/Switch', component: Switch, name: '实时控制' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '定时控制',
        iconCls: 'fa el-icon-time',
        leaf: true,//只有一个节点
        children: [
            { path: '/time', component: Time, name: '定时控制' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '计时控制',
        iconCls: 'fa el-icon-bell',
        leaf: true,//只有一个节点
        children: [
            { path: '/Clock', component: Clock, name: '计时控制' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '感应控制',
        iconCls: 'fa el-icon-upload',
        leaf: true,//只有一个节点
        children: [
            { path: '/Monitor', component: Monitor, name: '感应控制' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '遥控控制',
        iconCls: 'fa el-icon-upload2',
        leaf: true,//只有一个节点
        children: [
            { path: '/Remote', component: Remote, name: '遥控控制' },
        ]
    },
];

export default routes;